
<template>
  <div id="yhgs" class="single_page ">
    <div class="flowTitle"><a >  优惠公示 </a></div>
      <div class="pop_windows_con">
        <p v-if="!show">优惠公示将在开盘前公布，敬请关注！</p>
        <img v-if="show" :src="yhgs"/>
      </div>
      <div ><a id="yhgsBtn" @click="next" class="button button-orange button-diy">确认</a></div>
  </div>
</template>
<style type="text/css" lang="less" >
#yhgs{
  .info{
    max-width: 90%;
    display: inline-block;
    color: #fff;
    font-weight: 700;
  }
  p{color:#fff}
}
</style>
<script>
import {get,compNav} from '../../public/js/utils.js'
export default {
  data: function () {
    this.init()
    return {
      yhgs: '',
      show:1,
    }
  },
  props:['user'],
  components:{
  },
  methods:{
    async init(){
      compNav(this)
      const r =await get('/public/getConfig',{field:'yhgs'})
      if(r.value){
        this.show =1
      }
      else{
        this.show=0
      }
      this.yhgs =r.value
    },
    next(){
      this.jump('comp-choosearea')
    }
  }

}
</script>
